import 'package:flutter/material.dart';
import 'package:flutter_basic/basic/basic_view.dart';
import 'package:get/get.dart';
import '../controller.dart';
import 'controller.dart';

class TransListPage extends BasicPage<TransListPageController>{
  TransListPage.bind(controller, {String? tag}) : super.bind(controller, tag: tag);
  @override
  Widget build(BuildContext context) {
    print('build-build:${this.runtimeType}');
    TransactionPageController transController = Get.find(tag: viewTag);
    return Scaffold(
      appBar: AppBar(
        leading: IconButton(
            onPressed: (){
              transController.pageController.previousPage(
                  duration: Duration(milliseconds: 200),
                  curve: Curves.ease
              );
            },
            icon: Icon(
              Icons.arrow_back,
            )
        ),
        title: Text('成交列表页面'),
        centerTitle: true,
      ),
      body: GestureDetector(
        onTap: (){

        },
        child: Center(
          child: Container(
            height: 100,
            child: Text('成交列表页面'),
          ),
        ),
      ),
    );
  }
}
